x86/VPMU: use pre-computed masks when checking validity of MSRs
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 9 Jul 2015 11:54:57 +0000 (13:54 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 9 Jul 2015 11:54:57 +0000 (13:54 +0200)
commit00f4e7bf91aa8e79076f100765a979b4f67e7e08
tree4b2710371f323b7b07bf8e990db1c408269f90b7
parenta46edd2f1c21261d0d788dc8b70be7a807450e0c
x86/VPMU: use pre-computed masks when checking validity of MSRs

No need to compute those masks on every MSR access.

Also, when checking MSR_P6_EVNTSELx registers make sure that bit 21
(which is a reserved bit) is not set.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>
xen/arch/x86/hvm/vmx/vpmu_core2.c